﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BbsbWebService.Service.Update;

namespace BbsbWebService.Repositories
{
    internal static class ServerCommon
    {
        private static BbsbUpdateService _service;

        internal static void Initialise()
        {
            if (_service == null)
            {
                _service = new BbsbUpdateService();
                _service.Initialise();
            }
        }

        internal static void UpdateState(Guid id, Enums.PowerState state)
        {
            if (_service != null)
            {
                _service.UpdateState(id, state);
            }
        }
    }
}
